<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
import userDetail from "../userDetail/index.vue";
import orderDetail from "../order/index.vue";
import assetDetail from "../asset/index.vue";
// import balanceDetail from "../balance/index.vue";
import couponDetail from "../coupon/index.vue";
import addressBox from "../address/index.vue";
// import earningsDetail from "../earnings/index.vue";
import relationBox from "../relation/index.vue";

export default {
  mixins: [Vue.prototype.$vFN.Mixins.Base, Vue.prototype.$vFN.Mixins.Edit],
  components: {
    userDetail,
    orderDetail,
    assetDetail,
    // balanceDetail,
    couponDetail,
    addressBox,
    // earningsDetail,
    relationBox,
  },
  data() {
    return {
      appWindow: window,
      activeName: "userDetail",
      form: {},
      // 页面接口地址
      apiUrl: {
        detail: "store/menber/detail",
      },
      // 表格查询数据
      mixinTable_tableSearchData: {},
      // 表格数据
      tableData: [],
      loading: true,
      detailInfo: null,
      userId: "",
    };
  },

  methods: {
    hideBox() {
      this.loading = true;
      this.mixinEdit_editVisible = false;
      return;
    },

    // 初始化
    async init() {
      this.userId = this.id;
      if (this.mixinEdit_editType == "detail") {
        this.mixinEdit_editTitle = "会员信息";
        console.log("进来?", this.id);
      }

      // this.load["all"] = true;
      this.mixinEdit_editVisible = true;
      this.loading = false;
    },

    // 提交成功
    onSubmitSuccess() {
      this.onSuccess();
    },
    // 成功回调
    onSuccess() {},
    // 取消回调
    onCancel() {},
    // 失败回调
    onError() {},
    tabClick() {
      // console.log(this.activeName);
    },
  },
  mounted() {
    this.init();
  },
  activated() {},
};
</script>
